export default [
  {
    path: 'manage',
    name: 'TrainManage',
    component: () => import(/* webpackChunkName: "platform" */ '@/views/train/manage/index'),
    meta: {
      title: 'trainManage',
      code: 'Training',
      icon: 'el-icon-document',
      deleteThis: true,
      parentRouteName: 'TrainManage'
    },
    children: [
      // 培训列表页
      {
        path: '',
        name: 'TrainManage',
        component: () => import(/* webpackChunkName: "platform" */ '@/views/train/manage/trainType'),
        meta: {
          title: 'trainManage',
          code: 'Training',
          breadcrumb: false,
          icon: 'el-icon-document',
          allIdentity: true,
          activeMenu: '/train/manage',
          identity: [{ code: 'Training', title: 'route.train' }],
          parentRouteName: 'TrainManage'
        }
      },
      // 培训新增
      {
        path: 'add',
        name: 'TrainAdd',
        hidden: true,
        component: () => import(/* webpackChunkName: "platform" */ '@/views/train/manage/editTrain/index'),
        meta: {
          title: 'trainAdd',
          code: 'Training',
          deleteThis: true,
          activeMenu: '/train/manage',
          identity: [{ code: 'Training', title: 'route.train' }],
          parentRouteName: 'TrainManage'
        }
      },
      {
        path: ':id',
        hidden: true,
        component: () => import(/* webpackChunkName: "platform" */ '@/views/train/manage/trainDetail'),
        meta: {
          title: 'trainDetail',
          code: 'Training',
          breadcrumb: false,
          activeMenu: '/train/manage',
          deleteItem: true,
          deleteCode: true,
          deleteThis: true,
          identity: [{ code: 'Training', title: 'route.train' }],
          parentRouteName: 'TrainManage'
        },
        children: [
          // 培训编辑
          {
            path: 'edit',
            name: 'TrainEdit',
            component: () => import(/* webpackChunkName: "platform" */ '@/views/train/manage/editTrain/index'),
            meta: {
              title: 'trainEdit',
              code: 'TrainEdit',
              animateKey: '/train/manage/:id',
              activeMenu: '/train/manage',
              identity: [{ code: 'Training', title: 'route.train' }],
              parentRouteName: 'TrainManage'
            }
          },
          // 创建科目
          {
            path: 'subject',
            name: 'TrainSubject',
            component: () => import(/* webpackChunkName: "platform" */ '@/views/train/manage/editTrain/subject'),
            meta: {
              title: 'trainSubject',
              code: 'TrainSubject',
              animateKey: '/train/manage/:id',
              activeMenu: '/train/manage',
              identity: [{ code: 'TrainingType', title: 'route.train' }],
              parentRouteName: 'TrainManage'
            }
          },
          // 费用设置
          {
            path: 'expenses',
            name: 'TrainExpenses',
            component: () => import(/* webpackChunkName: "platform" */ '@/views/train/manage/expenses/index'),
            meta: {
              title: 'trainExpenses',
              code: 'TrainExpenses',
              animateKey: '/train/manage/:id',
              activeMenu: '/train/manage',
              identity: [{ code: 'Training', title: 'route.train' }],
              parentRouteName: 'TrainManage'
            }
          },
          // 日程安排
          {
            path: 'schedule',
            name: 'TrainSchedule',
            component: () => import(/* webpackChunkName: "platform" */ '@/views/train/manage/trainSchedule/index'),
            meta: {
              title: 'trainSchedule',
              code: 'TrainSchedule',
              animateKey: '/train/manage/:id',
              activeMenu: '/train/manage',
              identity: [{ code: 'Training', title: 'route.train' }],
              parentRouteName: 'TrainManage'
            }
          },
          // // 后勤管理
          // {
          //   path: 'trainLogistics',
          //   name: 'TrainLogistics',
          //   component: () => import(/* webpackChunkName: "platform" */ '@/views/train/manage/logistics/index'),
          //   meta: {
          //     title: 'logistics',
          //     code: 'TrainLogistics',
          //     animateKey: '/train/manage/:id',
          //     activeMenu: '/train/manage',
          //     identity: [{ code: 'Training', title: 'route.train' }],
          //     parentRouteName: 'TrainManage'
          //   }
          // },
          // 后勤管理
          {
            path: 'trainLogistics',
            name: 'TrainLogistics',
            component: () => import(/* webpackChunkName: "platform" */ '@/views/train/manage/logistics/index'),
            meta: {
              title: 'logistics',
              code: 'Training>Logistics',
              animateKey: '/train/manage/:id',
              activeMenu: '/train/manage',
              identity: [{ code: 'Training', title: 'route.train' }],
              parentRouteName: 'TrainManage'
            },
            children: [
              // 后勤酒店设置
              {
                path: '',
                name: 'TrainLogisticsHotel',
                component: () => import(/* webpackChunkName: "platform" */ '@/views/game/manage/logistics/hotel'),
                meta: {
                  title: 'logisticsHotel',
                  breadcrumb: false,
                  code: 'Training',
                  animateKey: '/train/manage/:id',
                  activeMenu: '/train/manage',
                  activeTab: 'TrainLogisticsHotel',
                  deleteItem: true,
                  deleteCode: true,
                  identity: [{ code: 'Training', title: 'route.train' }],
                  parentRouteName: 'TrainManage'
                }
              },
              // 后勤接待设置
              {
                path: 'trainLogisticsPickUp',
                name: 'TrainLogisticsPickUp',
                component: () => import(/* webpackChunkName: "platform" */ '@/views/game/manage/logistics/pickUp'),
                meta: {
                  title: 'logisticsPickUp',
                  breadcrumb: false,
                  code: 'Training',
                  animateKey: '/train/manage/:id',
                  activeMenu: '/train/manage',
                  activeTab: 'TrainLogisticsHotel',
                  deleteItem: true,
                  deleteCode: true,
                  identity: [{ code: 'Training', title: 'route.train' }],
                  parentRouteName: 'TrainManage'
                }
              },
              // 后勤接待设置
              {
                path: 'trainLogisticsCatering',
                name: 'TrainLogisticsCatering',
                component: () => import(/* webpackChunkName: "platform" */ '@/views/game/manage/logistics/catering'),
                meta: {
                  title: 'logisticsCatering',
                  breadcrumb: false,
                  code: 'Training',
                  animateKey: '/train/manage/:id',
                  activeMenu: '/train/manage',
                  activeTab: 'TrainLogisticsHotel',
                  deleteItem: true,
                  deleteCode: true,
                  identity: [{ code: 'Training', title: 'route.train' }],
                  parentRouteName: 'TrainManage'
                }
              }
            ]
          },
          // 数据管理
          {
            path: 'data',
            component: () => import(/* webpackChunkName: "platform" */ '@/views/train/manage/dataManage/index'),
            meta: {
              title: 'trainData',
              code: 'TrainData',
              animateKey: '/train/manage/:id',
              activeMenu: '/train/manage',
              identity: [{ code: 'Training', title: 'route.train' }],
              parentRouteName: 'TrainManage'
            },
            children: [
              // 数据管理首页
              {
                path: '',
                name: 'TrainData',
                hidden: true,
                component: () => import(/* webpackChunkName: "platform" */ '@/views/train/manage/dataManage/mainIndex'),
                meta: {
                  title: 'trainData',
                  breadcrumb: false,
                  code: 'TrainData',
                  animateKey: '/train/manage/:id',
                  activeMenu: '/train/manage',
                  deleteItem: true,
                  deleteCode: true,
                  identity: [{ code: 'Training', title: 'route.train' }],
                  parentRouteName: 'TrainManage'
                }
              },
              // 培训金额
              {
                path: 'trainAmount',
                hidden: true,
                component: () => import(/* webpackChunkName: "platform" */ '@/views/train/manage/dataManage/trainAmount/index'),
                meta: {
                  title: 'trainAmount',
                  code: 'TrainData',
                  animateKey: '/train/manage/:id',
                  activeMenu: '/train/manage',
                  activeTab: 'TrainData',
                  identity: [{ code: 'Training', title: 'route.train' }],
                  parentRouteName: 'TrainManage'
                },
                children: [
                  // 培训金额列表
                  {
                    path: '',
                    name: 'TrainingAmount',
                    component: () => import(/* webpackChunkName: "platform" */ '@/views/train/manage/dataManage/trainAmount/list'),
                    meta: {
                      title: 'trainAmount',
                      code: 'TrainData',
                      breadcrumb: false,
                      animateKey: '/train/manage/:id',
                      activeMenu: '/train/manage',
                      activeTab: 'TrainData',
                      identity: [{ code: 'Training', title: 'route.train' }],
                      parentRouteName: 'TrainManage'
                    }
                  },
                  // 培训金额详情
                  {
                    path: 'trainAmountDetail',
                    name: 'TrainAmountDetail',
                    hidden: true,
                    component: () => import(/* webpackChunkName: "platform" */ '@/views/train/manage/dataManage/trainAmount/detail'),
                    meta: {
                      title: 'trainAmountDetail',
                      code: 'TrainData',
                      animateKey: '/train/manage/:id',
                      activeMenu: '/train/manage',
                      isHidden: true,
                      activeTab: 'TrainData',
                      identity: [{ code: 'Training', title: 'route.train' }],
                      parentRouteName: 'TrainManage'
                    }
                  }
                ]
              },
              // 人员数据统计
              {
                path: 'personnel',
                name: 'Personnel',
                hidden: true,
                component: () => import(/* webpackChunkName: "platform" */ '@/views/train/manage/dataManage/personnel/index'),
                meta: {
                  title: 'personnel',
                  code: 'TrainData',
                  animateKey: '/train/manage/:id',
                  activeMenu: '/train/manage',
                  activeTab: 'TrainData',
                  identity: [{ code: 'Training', title: 'route.train' }],
                  parentRouteName: 'TrainManage'
                }
              },
              // 后勤金额
              {
                path: '',
                hidden: true,
                component: () => import(/* webpackChunkName: "platform" */ '@/views/game/manage/dataManage/logistics/index'),
                meta: {
                  title: 'logisticData',
                  code: 'TrainData',
                  breadcrumb: false,
                  activeMenu: '/train/manage',
                  deleteItem: true,
                  deleteCode: true,
                  identity: [{ code: 'Training>Logistics', title: 'route.train' }],
                  parentRouteName: 'TrainManage'
                },
                children: [
                  {
                    path: 'logisticOrder',
                    component: () => import(/* webpackChunkName: "platform" */ '@/views/game/manage/dataManage/logistics/logisticRouter'),
                    meta: {
                      title: 'logisticOrder',
                      code: 'TrainData',
                      animateKey: '/train/manage/:id',
                      activeMenu: '/train/manage',
                      identity: [{ code: 'Logistics', title: 'route.train' }],
                      parentRouteName: 'TrainManage'
                    },
                    // 培训后勤订单
                    children: [
                      {
                        path: '',
                        name: 'TrainLogisticOrder',
                        component: () => import(/* webpackChunkName: "platform" */ '@/views/game/manage/dataManage/logistics/logisticOrder'),
                        meta: {
                          title: 'logisticOrder',
                          code: 'TrainData',
                          breadcrumb: false,
                          animateKey: '/train/manage/:id',
                          activeMenu: '/train/manage',
                          activeTab: 'TrainData',
                          identity: [{ code: 'Logistics', title: 'route.train' }],
                          parentRouteName: 'TrainManage'
                        }
                      },
                      {
                        path: 'logisticDetail',
                        name: 'TrainLogisticDetail',
                        hidden: true,
                        component: () => import(/* webpackChunkName: "platform" */ '@/views/game/manage/dataManage/logistics/logisticDetail'),
                        meta: {
                          title: 'logisticDetail',
                          code: 'TrainData',
                          animateKey: '/train/manage/:id',
                          activeMenu: '/train/manage',
                          isHidden: true,
                          activeTab: 'TrainData',
                          identity: [{ code: 'Logistics', title: 'route.train' }],
                          parentRouteName: 'TrainManage'
                        }
                      }
                    ]
                  },
                  {
                    path: 'hotelData',
                    component: () => import(/* webpackChunkName: "platform" */ '@/views/game/manage/dataManage/logistics/logisticRouter'),
                    meta: {
                      title: 'hotelData',
                      code: 'TrainData',
                      animateKey: '/train/manage/:id',
                      activeMenu: '/train/manage',
                      identity: [{ code: 'Logistics', title: 'route.train' }],
                      parentRouteName: 'TrainManage'
                    },
                    children: [
                      {
                        path: '',
                        name: 'TrainHotelData',
                        component: () => import(/* webpackChunkName: "platform" */ '@/views/game/manage/dataManage/logistics/hotelData'),
                        meta: {
                          title: 'hotelData',
                          code: 'TrainData',
                          breadcrumb: false,
                          animateKey: '/train/manage/:id',
                          activeMenu: '/train/manage',
                          activeTab: 'TrainData',
                          identity: [{ code: 'Logistics', title: 'route.train' }],
                          parentRouteName: 'TrainManage'
                        }
                      },
                      {
                        path: 'hotelDetail',
                        name: 'TrainHotelDetail',
                        hidden: true,
                        component: () => import(/* webpackChunkName: "platform" */ '@/views/game/manage/dataManage/logistics/hotelDetail'),
                        meta: {
                          title: 'hotelDetail',
                          code: 'TrainData',
                          animateKey: '/train/manage/:id',
                          activeMenu: '/train/manage',
                          activeTab: 'TrainData',
                          isHidden: true,
                          identity: [{ code: 'Logistics', title: 'route.train' }],
                          parentRouteName: 'TrainManage'
                        }
                      }
                    ]
                  },
                  {
                    path: 'reception',
                    component: () => import(/* webpackChunkName: "platform" */ '@/views/game/manage/dataManage/logistics/logisticRouter'),
                    meta: {
                      title: 'reception',
                      code: 'TrainData',
                      animateKey: '/train/manage/:id',
                      activeMenu: '/train/manage',
                      identity: [{ code: 'Logistics', title: 'route.train' }],
                      parentRouteName: 'TrainManage'
                    },
                    children: [
                      {
                        path: '',
                        name: 'TrainReception',
                        component: () => import(/* webpackChunkName: "platform" */ '@/views/game/manage/dataManage/logistics/reception'),
                        meta: {
                          title: 'reception',
                          code: 'TrainData',
                          breadcrumb: false,
                          animateKey: '/train/manage/:id',
                          activeMenu: '/train/manage',
                          activeTab: 'TrainData',
                          identity: [{ code: 'Logistics', title: 'route.train' }],
                          parentRouteName: 'TrainManage'
                        }
                      },
                      {
                        path: 'receptionDetail',
                        name: 'TrainReceptionDetail',
                        hidden: true,
                        component: () => import(/* webpackChunkName: "platform" */ '@/views/game/manage/dataManage/logistics/receptionDetail'),
                        meta: {
                          title: 'receptionDetail',
                          code: 'TrainData',
                          animateKey: '/train/manage/:id',
                          activeMenu: '/train/manage',
                          activeTab: 'TrainData',
                          isHidden: true,
                          identity: [{ code: 'Logistics', title: 'route.train' }],
                          parentRouteName: 'TrainManage'
                        }
                      }
                    ]
                  },
                  {
                    path: 'restaurant',
                    component: () => import(/* webpackChunkName: "platform" */ '@/views/game/manage/dataManage/logistics/logisticRouter'),
                    meta: {
                      title: 'restaurant',
                      code: 'TrainData',
                      animateKey: '/train/manage/:id',
                      activeMenu: '/train/manage',
                      identity: [{ code: 'Logistics', title: 'route.train' }],
                      parentRouteName: 'TrainManage'
                    },
                    children: [
                      {
                        path: '',
                        name: 'TrainRestaurant',
                        component: () => import(/* webpackChunkName: "platform" */ '@/views/game/manage/dataManage/logistics/restaurant'),
                        meta: {
                          title: 'restaurant',
                          code: 'TrainData',
                          breadcrumb: false,
                          animateKey: '/train/manage/:id',
                          activeMenu: '/train/manage',
                          activeTab: 'TrainData',
                          identity: [{ code: 'Logistics', title: 'route.train' }],
                          parentRouteName: 'TrainManage'
                        }
                      },
                      {
                        path: 'restaurantDetail',
                        name: 'TrainRestaurantDetail',
                        hidden: true,
                        component: () => import(/* webpackChunkName: "platform" */ '@/views/game/manage/dataManage/logistics/restaurantDetail'),
                        meta: {
                          title: 'restaurantDetail',
                          code: 'TrainData',
                          animateKey: '/train/manage/:id',
                          activeMenu: '/train/manage',
                          activeTab: 'TrainData',
                          isHidden: true,
                          identity: [{ code: 'Logistics', title: 'route.train' }],
                          parentRouteName: 'TrainManage'
                        }
                      }
                    ]
                  }
                ]
              },
              // 参训证
              {
                path: 'certificate',
                name: 'TrainingCertificate',
                hidden: true,
                component: () => import(/* webpackChunkName: "platform" */ '@/views/train/manage/dataManage/certificate/index'),
                meta: {
                  title: 'trainingCertificate',
                  code: 'TrainData',
                  animateKey: '/train/manage/:id',
                  activeMenu: '/train/manage',
                  activeTab: 'TrainData',
                  identity: [{ code: 'Training', title: 'route.train' }],
                  parentRouteName: 'TrainManage'
                }
              }
            ]
          },
          // 培训成绩
          {
            path: 'result',
            name: 'TrainResult',
            component: () => import(/* webpackChunkName: "platform" */ '@/views/train/manage/editTrain/trainResult'),
            meta: {
              title: 'trainResult',
              code: 'TrainResult',
              animateKey: '/train/manage/:id',
              activeMenu: '/train/manage',
              identity: [{ code: 'Training', title: 'route.train' }],
              parentRouteName: 'TrainManage'
            }
          },
          // 考试官
          {
            path: 'examiner',
            name: 'TrainExaminer',
            component: () => import(/* webpackChunkName: "platform" */ '@/views/train/manage/editTrain/trainExaminer'),
            meta: {
              title: 'trainExaminer',
              code: 'TrainExaminer',
              animateKey: '/train/manage/:id',
              activeMenu: '/train/manage',
              identity: [{ code: 'Training', title: 'route.train' }],
              parentRouteName: 'TrainManage'
            }
          }
        ]
      }
    ]
  },
  // 培训审核
  {
    path: 'identifyApprove',
    name: 'TrainIdentifyApprove',
    component: () => import(/* webpackChunkName: "platform" */ '@/views/train/identifyApprove/index'),
    meta: {
      title: 'trainIdentifyApprove',
      code: 'Training',
      icon: 'el-icon-s-check',
      deleteThis: true,
      parentRouteName: 'TrainIdentifyApprove'
    },
    children: [
      // 培训审核列表
      {
        path: '',
        hidden: true,
        name: 'TrainIdentifyApprove',
        component: () => import(/* webpackChunkName: "platform" */ '@/views/train/identifyApprove/list'),
        meta: {
          title: 'trainIdentifyApprove',
          code: 'Training',
          breadcrumb: false,
          activeMenu: '/train/identifyApprove',
          deleteItem: true,
          deleteCode: true,
          parentRouteName: 'TrainIdentifyApprove'
        }
      },
      // 培训审核详情
      {
        path: ':approveId',
        hidden: true,
        name: 'TrainIdentifyApproveDetail',
        component: () => import(/* webpackChunkName: "platform" */ '@/views/train/identifyApprove/detail.vue'),
        meta: {
          title: 'trainidentifyApproveDetail',
          code: 'Training',
          breadcrumb: true,
          activeMenu: '/train/identifyApprove',
          deleteItem: true,
          deleteCode: true,
          parentRouteName: 'TrainIdentifyApprove'
        }
      }
    ]
  },
  // 培训项目审核
  {
    path: 'seqApprove',
    component: () => import(/* webpackChunkName: "platform" */ '@/views/train/seqApprove/index'),
    meta: {
      title: 'trainSeqApprove',
      code: 'Training',
      icon: 'el-icon-s-check',
      deleteThis: true,
      parentRouteName: 'TrainSeqApprove'
    },
    children: [
      // 培训项目审核列表
      {
        path: '',
        hidden: true,
        name: 'TrainSeqApprove',
        component: () => import(/* webpackChunkName: "platform" */ '@/views/train/seqApprove/trainList'),
        meta: {
          title: 'trainSeqApprove',
          code: 'Training',
          breadcrumb: false,
          activeMenu: '/train/seqApprove',
          deleteItem: true,
          deleteCode: true,
          parentRouteName: 'TrainSeqApprove'
        }
      },
      // 培训项目审核详情
      {
        path: ':id',
        hidden: true,
        component: () => import(/* webpackChunkName: "platform" */ '@/views/train/seqApprove/order/index'),
        meta: {
          title: 'trainSeqApproveDetail',
          code: 'Training',
          activeMenu: '/train/seqApprove',
          deleteItem: true,
          deleteCode: true,
          parentRouteName: 'TrainSeqApprove'
        },
        children: [
          // 培训项目审核详情订单列表
          {
            path: '',
            hidden: true,
            name: 'TrainSeqApproveOrder',
            component: () => import(/* webpackChunkName: "platform" */ '@/views/train/seqApprove/order/list'),
            meta: {
              title: 'trainSeqApproveDetail',
              code: 'Training',
              breadcrumb: false,
              activeMenu: '/train/seqApprove',
              deleteItem: true,
              deleteCode: true,
              parentRouteName: 'TrainSeqApprove'
            }
          },
          {
            path: 'detail',
            hidden: true,
            name: 'TrainSeqApproveOrderDetail',
            component: () => import(/* webpackChunkName: "platform" */ '@/views/train/seqApprove/order/detail'),
            meta: {
              title: 'trainSeqApproveOrderDetail',
              code: 'Training',
              activeMenu: '/train/seqApprove',
              deleteItem: true,
              deleteCode: true,
              parentRouteName: 'TrainSeqApprove'
            }
          }
        ]
      }
    ]
  },
  // 角色权限赋权使用 不渲染侧边栏
  {
    // 培训管理
    path: 'trainrole3',
    hidden: true,
    meta: {
      title: 'activitiesTrainIdenty',
      code: 'Training'
    }
  },
  {
    // 培训等级
    path: 'trainrole1',
    hidden: true,
    meta: {
      title: 'trainingLevel',
      code: 'TrainingLevel'
    }
  },
  {
    // 培训审批
    path: 'trainrole4',
    hidden: true,
    meta: {
      title: 'trainningApprove',
      code: 'TrainningApprove'
    }
  }
];
